Function |wrapping_neg

std/ops/num::|wrapping_neg


Usage

|wrapping_neg<N>(val)

Generics

◻ N: WrappingNeg

Parameters

↳ val: N

Return

↴ N


Return negation of given value, wrapping on bounds.

This function is infaillible and wrap if -val reach boundary of the data type.